import React, { useState, useEffect, useRef } from 'react';
import { connect } from 'umi';
import styles from './index.less';
import { EntityListComponent } from 'enoad-component-web/dist/src';

const EntityList = (props) => {
  const {
    dispatch,
    loading,
    match: { params },
  } = props;
  return (
    <div className={styles.MainIndex}>
      <EntityListComponent apiKey={params.apiKey} />
    </div>
  );
};
export default connect(({ loading }) => ({
  loading,
}))(EntityList);
